<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      background: url('https://www.fjpit.edu.cn/_upload/article/images/85/0a/ace6605245f7aa03c4f70daef565/4859390e-bc87-42e1-896f-44386bc14740.png') no-repeat center center fixed;
      background-size: cover;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .login_box {
      text-align: center;
      width: 40%;
      background: rgba(255, 255, 255, 0.85);
      padding: 30px;
      border-radius: 10px;
      color: black;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }
    .login_box h2 {
      margin-bottom: 20px;
      text-align: center;
    }
    input[type="text"],
    input[type="password"] {
      width: 60%;
      font-size: 20px;
      color: black;
      background: transparent;
      padding: 8px 10px;
      margin-top: 10px;
      border: none;
      border-bottom: 0.5px solid black;
      outline: none;
    }

    .button-box{
      display: flex;
      justify-content: center;
    }

    button {
      margin-top: 20px;
      width: 60%;
      height: 40px;
      background-color: #0073e6;
      color: white;
      border: none;
      cursor: pointer;
      transition: background-color 0.3s;
    }
    button:hover {
      background-color: #005bb5;
    }

    .footer{
      text-align: center;
    }

    .footer img{
      margin-top: 20px;
      width: 200px;
      height: 35px;
    }
  </style>
</head>
<body>
<div class="login_box">
  <h2>学生宿舍管理系统</h2>
  <form action="loginServlet" method="POST">
    <div class="input_box">
      账号：<input type="text" name="account"><br>
    </div>
    <div class="input_box">
      密码：<input type="password" name="password"><br>
    </div>
    <div class="button-box"><button>登录</button></div>
  </form>

</div>
</body>
</html>